package org.future.esb.component;
/**
 *@date   2010-4-12 下午07:59:41
 *@author dycc
 *@file   org.future.esb.component.ComponentImpl.java
 */
public class ComponentImpl {
	private String tagName = "component";
	private String clazz = "";
	private MethodEntryPointResolver resolver = null;
	/**
	 * toString
	 * @return
	 */
	public String toString(){
		StringBuilder sb = new StringBuilder();
		sb.append("<" + tagName);
		sb.append(" class=\"" + getClassName() + "\"");
		sb.append(">");
		sb.append("\r\n");
		// add child
		if(resolver != null){
			sb.append(getResolver());
			sb.append("\r\n");
		}
		// add end element
		sb.append("</" + tagName + ">");
		return sb.toString();
	}
	
	public String getTagName() {
	    return tagName;
    }
	public void setTagName(String tagName) {
	    this.tagName = tagName;
    }
	
	public String getClassName() {
	    return clazz;
    }
	public void setClassName(String clazz) {
	    this.clazz = clazz;
    }
	
	public MethodEntryPointResolver getResolver() {
	    return resolver;
    }
	public void setResolver(MethodEntryPointResolver resolver) {
	    this.resolver = resolver;
    }
}
